package com.xy;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication(scanBasePackages = {"com.alibaba.nacos", "com.xy"})
// 启动nacos客户端，注册服务
@EnableDiscoveryClient
@MapperScan("com.xy.**.mapper")
public class StockProviderServer {
    public static void main(String[] args) {
        ConfigurableApplicationContext applicationContext = SpringApplication.run(StockProviderServer.class, args);

    }
}